package com.minhang.exception;

import com.minhang.utils.result.ResultCode;
import lombok.Getter;

/**
 * 自定义业务异常
 * @author rookie
 */
@Getter
public class MyException extends Exception{

    private ResultCode resultCode;

    public MyException(){}

    public MyException(ResultCode resultCode){
        super(resultCode.message());
        this.resultCode = resultCode;
    }
    public MyException(String message){
        super(message);
    }

}
